package name.huzhenbo.java.patterns.state;

/**
 * Move the action to DoorState, it will be more convenience to add a new state.
 * <p/>
 * But it will couple with DoorManager. If there's not too many state, and not likely to add new state, I prefer
 * <p/>
 * switch case to state pattern.
 */
interface DoorState {
    void open(DoorManager doorManager);

    void close(DoorManager doorManager);
}
